/**
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */

import {Operation} from './Operation';

export class CommitCloudSyncOperation extends Operation {
  static opName = 'CommitCloudSync';

  constructor(private full = false) {
    super('CommitCloudSyncOperation');
  }

  getArgs() {
    const args = ['cloud', 'sync'];
    if (this.full) {
      args.push('--full');
    }
    return args;
  }
}
